﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="KaoShifuxi02._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Button runat="server" ID="btnAdd" Text="添加" OnClick="btnAdd_Click" />
    <asp:GridView runat="server" ID="gv1" AutoGenerateColumns="false" OnRowCancelingEdit="gv1_RowCancelingEdit" OnRowDeleting="gv1_RowDeleting" OnRowEditing="gv1_RowEditing" OnRowUpdating="gv1_RowUpdating">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" />
            <asp:BoundField DataField="ProductName" HeaderText="商品名称" />
            <asp:BoundField DataField="ShortDesc" HeaderText="商品简介" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" />
            <asp:CommandField ShowCancelButton="true" ShowEditButton="true" ShowDeleteButton="true" HeaderText="操作" />
        </Columns>
    </asp:GridView>
</asp:Content>
